<?php
/**
 * Created by PhpStorm.
 * User: Vova
 * Date: 10/5/14
 * Time: 5:59 PM
 */

define('SMARTY_DIR', 'C:/xampp/htdocs/door-market/Smarty-3.1.19/libs/');
require_once('C:/xampp/htdocs/door-market/php/classes/db.class.php');
require_once("C:/xampp/htdocs/door-market/php/classes/Host_config.class.php");

require_once(SMARTY_DIR . 'Smarty.class.php');

include_once("View.class.php");


class Item_view extends View{
    private $smarty;

    function __construct(){

    }
    public function display_item($item_info,$category_list){



        $smarty = new Smarty();

        $smarty->template_dir = 'C:/xampp/htdocs/door-market/templates/';
        $smarty->compile_dir  = 'C:/xampp/htdocs/door-market/templates_c';




        $host_name = Host_config::$host_name;

        $smarty->assign('host_name',$host_name);

        $smarty->assign('category_list',$category_list);



        $smarty->assign('item_info',$item_info);
        //
        $smarty->display('item.tpl');

    }


} 